package com.ling.pl.autoproject.definition.view.model;

import com.ling.pl.core.commons.annotation.Dict;
import com.ling.pl.core.commons.annotation.ModelProperty;

import javax.persistence.Column;

public class ViewLink {

    @Column(name = "CODE", length = 150)
    @ModelProperty(comment = "关联视图模式")
    String code;

    @Column(name = "VIEW_ID", length = 36)
    @ModelProperty(comment = "实体id")
    String viewId;

    @Column(name = "LINK_VIEW_ID", length = 36)
    @ModelProperty(comment = "部件id")
    String linkViewId;

    @Column(name = "VIEW_TYPE", length = 150)
    @ModelProperty(comment = "预置视图类型")
    @Dict(code = "builder.view.viewType", des = "默认单选视图\n" +
            "默认编辑视图\n" +
            "默认索引实体选择视图\n" +
            "默认多表单选择视图\n" +
            "默认多选视图\n" +
            "默认多项视图\n" +
            "默认流程编辑视图\n" +
            "默认流程多项视图\n" +
            "默认数据重定向视图\n" +
            "移动端默认单选视图\n" +
            "移动端默认编辑视图\n" +
            "移动端默认索引实体选择视图\n" +
            "移动端默认多表单选择视图\n" +
            "移动端默认多选视图\n" +
            "移动端默认多项视图\n" +
            "移动端默认流程编辑视图\n" +
            "移动端默认流程多项视图")
    String viewType;

    @Column(name = "OPEN_TYPE", length = 150)
    @ModelProperty(comment = "打开方式")
    @Dict(code = "builder.view.openType", des = "顶级容器分页,非模式弹出,模式弹出,独立程序弹出")
    String openType;

    @Column(name = "COMPONENT_ID", length = 36)
    @ModelProperty(comment = "部件id")
    String componentId;

    @Column(name = "WIDTH_")
    @ModelProperty(comment = "宽度")
    Integer width;

    @Column(name = "HEIGHT_")
    @ModelProperty(comment = "高度")
    Integer height;

    @Column(name = "DYNAMIC_PARAMS", length = 250)
    @ModelProperty(comment = "控件动态参数")
    String dynamicParams;

    @Column(name = "REMARK", length = 500)
    @ModelProperty(comment = "备注")
    String remark;
}
